<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusAttendanceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_attendance', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->tinyInteger('line')->nullable()->comment('线路');
            $table->string('license_plate_num')->nullable()->comment('车牌号');
            $table->string('driver')->nullable()->comment('司机');
            $table->integer('driver_card_num')->nullable()->comment('司机卡号');
            $table->string('self_numbering')->nullable()->comment('自编号');
            $table->dateTime('should_sign_time')->nullable()->comment('应签时间');
            $table->dateTime('actual_sign_time')->nullable()->comment('实签时间');
            $table->string('zhunwu')->nullable()->comment('zhunwu');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_attendance');
    }
}
